
let CONFIG = {
    canvas_map_id: "canvas_map",
    canvas_stage_id: "canvas_stage",
    debug_panel_id: "debug",
    debug_panel2_id: "debug2",
    operation_id: "operation",

    // loop_interval: 25,
    map_size: 20,
    debug: true,
    gold: 120,
    level_pause_time: 5,
    base_font_size: 30,

    weapon_type: [
        // fire_interval(ms), fire_range(cell),fire_range(calculate from fire_range and cell width)
        {
            type: 0, name: "drop", label: "拆除", bullet_power: 0, bullet_speed: 0,
            fire_interval: 0, fire_cell_range: 0, fire_range: 0, gold: 0
        },
        {
            type: 1, name: "empty", label: "无", bullet_power: 0, bullet_speed: 0,
            fire_interval: 0, fire_cell_range: 0, fire_range: 0, gold: 0
        },
        {
            type: 2, name: "wall", label: "城墙", bullet_power: 0, bullet_speed: 0,
            fire_interval: 0, fire_cell_range: 0, fire_range: 0, gold: 5
        },
        {   //火力：18
            type: 3, name: "weapon", label: "大炮", bullet_power: 4, bullet_speed: 10,
            fire_interval: 200, fire_cell_range: 4.5, fire_range: 0, gold: 60
        },
        {   //火力：30
            type: 4, name: "laser", label: "激光", bullet_power: 6, bullet_speed: 0,
            fire_interval: 200, fire_cell_range: 3.5, fire_range: 0, gold: 100
        },
        {   //火力：45
            type: 5, name: "wave", label: "波炮", bullet_power: 3, bullet_speed: 3,
            fire_interval: 200, fire_cell_range: 3.5, fire_range: 0, gold: 180
        },
    ],

    spirit: {
        max_live_spirit: 8,
        // move_interval: 360,
        gen_interval: 1000,
        spirit_batch: 5,
        max_escape: 10,
        random_path: true,
    },

    spirit_types: [
        // type, weight, speed, blood, calibrate(射击校准）,fire_scale(射击时伤害范围)
        {
            type: 1, weight: 10, speed: 5, blood: 60, gold: 2,
            fire_calibrate: 10, fire_scale: 1.5, move_interval: 800
        },
        {
            type: 2, weight: 15, speed: 5, blood: 90, gold: 4,
            fire_calibrate: 10, fire_scale: 1.2, move_interval: 1000
        },
        {
            type: 3, weight: 20, speed: 5, blood: 120, gold: 6,
            fire_calibrate: 10, fire_scale: 1.0, move_interval: 1200
        },
    ],

};

export default CONFIG;